import { createRouter, createWebHashHistory } from 'vue-router'
import { constRoutes } from './routes'
const router = createRouter({
  history: createWebHashHistory(),
  routes: constRoutes,
  scrollBehavior() {
    // return 期望滚动到哪个的位置
    return {
      left: 0,
      top: 0
    }
  }
})

export default router
